import { HttpsProxyAgent } from "https-proxy-agent";
import { get } from "../axios";

export const getProxyRequest=async ()=>{
    return await get("https://share.proxy.qg.net/get",{
        params:{
            key:"IU9G01YW",
            num:"1",
            isp:"0",
            format:"json",
            distinct:true
        }
    })
}


export const testProxy=async (agent:any)=>{
    return await  get("https://test.ipw.cn",{
        httpAgent: agent,
        httpsAgent: agent,
    })
}